<template>
    <el-config-provider :locale="zhCn" :size="size">
        <router-view/>
    </el-config-provider>
</template>

<script setup lang="ts">
import {ElConfigProvider} from 'element-plus';
import zhCn from 'element-plus/es/locale/lang/zh-cn';
import {computed} from "vue";
import useStore from '@/store';
import type {EpPropMergeType} from "element-plus/es/utils/vue/props/types";

const {app} = useStore();
const size = computed(() => app.size as EpPropMergeType<StringConstructor, "default" | "small" | "large", never>);
</script>
